export function showtime(val) {
  const timer = new Date(val * 1000)
  const y = timer.getFullYear()
  const m = (timer.getMonth() + 1).toString().padStart(2, 0)
  const d = timer.getDate().toString().padStart(2, 0)
  const hh = timer.getHours().toString().padStart(2, 0)
  const mm = timer.getMinutes().toString().padStart(2, 0)
  const ss = timer.getSeconds().toString().padStart(2, 0)
  return `${y}-${m}-${d} ${hh}:${mm}:${ss}`
}

export function sellnum(val) {
  if (val < 10000) return val
  else {
    return ((val - 0) / 10000).toFixed(1) + '万'
  }
}
